package com.egao.common.module.notice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.JsonResult;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.notice.entity.Notice;
import com.egao.common.module.notice.utils.NoticeParams;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * notice service
 * @author root
 */
public interface NoticeService extends IService<Notice> {

    /**
     * 查询列表
     * @param page
     * @return
     */
    List<Notice> listPage(PageParam<Notice> page);

    /**
     * 发送通知
     * @param noticeParams
     * @return
     */
    JsonResult send(NoticeParams noticeParams, Integer loginUserId);

    /**
     * 导入学工号excel
     * @param file
     * @return
     */
    JsonResult importExcel(MultipartFile file);

    /**
     * 下载记录
     * @param noticeId
     * @param response
     * @return
     */
    void exportExcel(Integer noticeId, HttpServletResponse response);
}
